This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Martha Desboositheroden 14.Jan.04 01:29 PM a Web browser Domino Designer6.0.2 CF2Windows 2000
I have 3 forms in a workflow database, each with at least 50 fields on them. I want to create a new field that contains the names of the fields that were changed in the last session by a user. My users are having a difficult time determining what was changed on the form, and this is #1 on their wish list.
I can capture 'befores' and 'afters' of fields using the entering and exiting events, and was going to just make a script that was called by every field to perform that action. Then it would post the name of the field that was changed into the lastupdated field.
Is there any easier/more efficient way of accomplishing this??
Here is a sample entering event that I was going to put into a script, then I just compare current value in exiting event, this works just fine, but would be difficult to implement on every field:
Sub Entering(Source As Field)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim currentValue, thisField, secondaryField As String
thisField = "AHUsage"
secondaryField = "AHClass"
Set uidoc = workspace.CurrentDocument
currentValue = uidoc.fieldgettext(thisField)
If currentValue <> "" Then
Call uidoc.FieldSetText("tempValue", currentValue)
Else
Call uidoc.FieldClear("tempValue")
End If
'Set the tempLocation to the secondary field - done to execute the exiting event in this field if document is saved without moving off of this field.
Call uidoc.FieldSetText("tempLocation",secondaryField)
End Sub